package com.cainaer.orders.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cainaer.common.core.web.domain.AjaxResult;
import com.cainaer.orders.domain.OrderItem;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * <p>
 * 订单商品信息表 服务类
 * </p>
 *
 * @author Tina
 * @since 2020-09-11
 */
public interface IOrderItemService extends IService<OrderItem> {

    /**
     * 新增订单商品信息
     *
     * @param orderItem
     * @return
     */
    public Integer insertOrderItem(OrderItem orderItem);

    /**
     * 编辑订单商品信息
     *
     * @param orderItem
     * @return
     */
    public Integer editOrderItem(OrderItem orderItem);

    /**
     * 查询订单商品信息
     *
     * @param orderItem
     * @return
     */
    public List<OrderItem> selectOrderItem(OrderItem orderItem);


    /**
     * 通过商铺ID查询这个商铺的订单商铺信息的商品ID
     *
     * @param shopId
     * @return
     */
    public List<Long> selectOrderItemProductIdListsByShopId(Long shopId);


}
